//
//  AvchatUISDK.h
//  DCAvchatUISDK
//
//  Created by 张涛 on 2020/10/14.
//  Copyright © 2020 zhangtao. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <DCAvchatSDK/DCAvchatSDK.h>
#import "DCAvchatUICallInvitationVCDelegate.h"
#import "DCAvchatUICallVCDelegate.h"
#import "DCAvchatUISDKConfig.h"

NS_ASSUME_NONNULL_BEGIN

@interface AvchatUISDK : NSObject<DCAvchatCallInvitationDelegate,DCAvchatCalleeStateDelegate,DCAvchatUICallInvitationVCDelegate,DCAvchatUICallVCDelegate>

@property(nonatomic,strong) NSString *serverUrl;
@property(nonatomic,strong) NSDictionary *loginInfo;
@property(nonatomic,strong) NSDictionary *avchatInfo;
@property(nonatomic,strong) NSDictionary *avchatConfigInfo;
@property(nonatomic,assign) int avStatus;

+ (instancetype) sharedSDK;

//初始化AvchatUISDK
- (void) initWithServiceUrl:(NSString*)url;
//登录
- (void) login:(NSDictionary*)loginInfo callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;
//呼叫
- (void) call:(NSDictionary*)callInfo callback:(nullable void (^)(DCError *error,NSDictionary *data))callback;
//打开视频业务界面
- (void) startBusiPage:(NSString*)busiPageUrl;
//退出登录
- (void) logout;
//视频挂断
- (void) hangUp;

@end

NS_ASSUME_NONNULL_END
